package com.hzhr.iot.core.constant;

public enum ResponseCode {
    //region 401
    CODE400_10000(40010000, "参数错误!"),
    CODE400_10001(40010001, "用户名称必须填写!"),
    //endregion
    //region 401
    CODE401_10000(40110000, "无访问权限!"),
    //endregion
    //region 403
    CODE403_10000(40110000, "拒绝访问!"),
    //endregion
    //region 500
    CODE500_10000(50010000, "内部服务异常!"),
    CODE500_10001(50010001, "无法获取日志模型!");
    //endregion

    private Integer code;
    private String des;

    ResponseCode(Integer code, String des) {
        this.code = code;
        this.des = des;
    }

    public Integer getCode() {
        return code;
    }

    public String getDes() {
        return des;
    }
}
